import datetime


def convert_seconds_to_hms(seconds):
    # 使用divmod()函数将秒数转换为小时、分钟和秒
    m, s = divmod(seconds, 60)
    h, m = divmod(m, 60)
    # 格式化为时分秒格式
    time_format = "{:02}:{:02}:{:02}".format(int(h), int(m), int(s))

    return time_format


# 输入秒数
seconds = 3441
time_format = convert_seconds_to_hms(seconds)
print("时分秒格式为:", time_format)
